package com.zxh.service;

import com.zxh.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {

    List<User> getUserList();

    User getUserByLogin(String userCode, String userPassword);

    int getUserCountByParams(String userName, Integer userRole);

    List<User> getUserListByParams(Map<String, Object> params);

    int addUser(User user);

    User getUserById(Integer id);

    int delUserById(Integer id);

    int checkUserCountByCode(String usercode);

    int checkUserOfId(String usercode, Integer id);

    int updateUser(User user);
}
